package com.myCommunity.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myCommunity.biz.CommentBiz;
import com.myCommunity.dao.CommentDao;
import com.myCommunity.dao.impl.CommentDaoImpl;
import com.myCommunity.entity.Comment;
@Service("commentBiz")
public class CommentBizImpl implements CommentBiz{
	@Autowired
	private CommentDao commentDao;
	public List<Comment> getDetails(int topicId) {
		return commentDao.getDetails(topicId);
	}
	public List<Comment> getDetailsPage(int topicId, 
			int pageSize, int pageNo) {
		
		return commentDao.getDetailsPage(topicId, pageSize, pageNo);
	}
	public void publishComment(Comment comment) {
		commentDao.publishComment(comment);
	}

}
